# coding=utf8

# Copyright 2018 JDCLOUD.COM
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This class is auto generated by the jdcloud code generator program.


class ExecutionPlan(object):

    def __init__(self, id=None, selectType=None, table=None, partitions=None, accessType=None, possibleKeys=None, key=None, keyLen=None, ref=None, rows=None, filtered=None, extra=None):
        """
        :param id: (Optional) sql执行顺序id
        :param selectType: (Optional) select语句类型
        :param table: (Optional) 表名
        :param partitions: (Optional) 匹配的分区
        :param accessType: (Optional) 访问行的类型
        :param possibleKeys: (Optional) 可能选用的索引
        :param key: (Optional) 确切使用到的索引
        :param keyLen: (Optional) 表示索引中使用的字节数
        :param ref: (Optional) 哪个字段或常数与 key 一起被使用
        :param rows: (Optional) 一共扫描了多少行. 是一个估计值
        :param filtered: (Optional) 此查询条件所过滤的数据的百分比
        :param extra: (Optional) 额外的信息
        """

        self.id = id
        self.selectType = selectType
        self.table = table
        self.partitions = partitions
        self.accessType = accessType
        self.possibleKeys = possibleKeys
        self.key = key
        self.keyLen = keyLen
        self.ref = ref
        self.rows = rows
        self.filtered = filtered
        self.extra = extra
